package com.wjmj.balloon.debugger.actions;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.actions.ActionGroup;

import balloondebugger.Activator;

public class ConsoleActionGroup extends ActionGroup {

	private Action clear_coAction;
	private Action copyt_fileAction;

	@Override
	public void fillActionBars(IActionBars actionBars) {
		if (actionBars == null)
			return;

		makeActions();

		IToolBarManager toolBarManager = actionBars.getToolBarManager();
		toolBarManager.add(clear_coAction);
		toolBarManager.add(copyt_fileAction);
	}

	private void makeActions() {

		// clear_co
		clear_coAction = new Action() {
			public void run() {
				// TODO do clear_co
			}
		};
		clear_coAction.setToolTipText("Clear Log");
		clear_coAction.setImageDescriptor(Activator
				.getImageDescriptor("icons/console/clear_co.gif"));

		// copyt_file
		copyt_fileAction = new Action() {
			public void run() {
				// TODO do copyt_file
			}
		};
		copyt_fileAction.setToolTipText("Copy Log To File");
		copyt_fileAction.setImageDescriptor(Activator
				.getImageDescriptor("icons/console/copyt_file.gif"));

	}

}
